part of '../index.dart';

class RtcTicketModel {
  String? rtcToken;
  int? agoraUserId;
  int? expireTime;

  RtcTicketModel({
    this.rtcToken,
    this.agoraUserId,
    this.expireTime,
  });

  RtcTicketModel.fromJson(Map<String, dynamic> json) {
    rtcToken = json['rtcToken'];
    agoraUserId = json['agoraUserId'];
    expireTime = int.tryParse('${json['expireTime']}');
  }
  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['rtcToken'] = rtcToken;
    data['agoraUserId'] = agoraUserId;
    data['expireTime'] = expireTime;
    return data;
  }
}
